using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace com.yoozoo.gta
{
    public class CitySkinAni1028 : MonoBehaviour
    {
        [Tooltip("更新角度最小随机值")]
        public float minDirection = 0f;
        [Tooltip("更新角度最大随机值")]
        public float maxDirection = 1f;
        [Tooltip("更新节点")]
        public Transform tagert;
        public void SetRandomDirection()
        {
            if (tagert)
            {
                float randomDirection = Random.Range(minDirection, maxDirection);
                Vector3 rotation = tagert.localEulerAngles;
                rotation.z = randomDirection;
                tagert.localEulerAngles = rotation;
            }
        }
    }
}
